
#include <BPhysics>
#include "member_BPhysics.h"

using namespace BWE;

#define member					(*(member_BPhysics*)_ptr)
#define member_allocate()		_ptr = new member_BPhysics(this)
#define member_release()		delete (member_BPhysics*)_ptr

BPhysics::BPhysics()
{
	member_allocate();
}
BPhysics::~BPhysics()
{
	member_release();
}

void BPhysics::setMass(float mass)
{
	member.mass = mass;
}
float BPhysics::mass() const
{
	return member.mass;
}

void BPhysics::setGravity(const BVector& gravity)
{
	member.gravity = gravity;
}
const BVector& BPhysics::gravity() const
{
	return member.gravity;
}

void BPhysics::setFriction(float friction)
{
	member.friction = friction;
}
float BPhysics::friction() const
{
	return member.friction;
}

void BPhysics::setElastane(float elastane)
{
	member.elastane = elastane;
}
float BPhysics::elastane() const
{
	return member.elastane;
}

void BPhysics::setForce(const BVector& force)
{
	member.force = force;
}
const BVector& BPhysics::force() const
{
	return member.force;
}

void BPhysics::setSpeed(const BVector& speed)
{
	member.speed = speed;
}
const BVector& BPhysics::speed() const
{
	return member.speed;
}

